#include <stdio.h>
#include <stdlib.h>

/**
 * Clean up on exit
 * This function is a handler for Ctrl-C signal
 */
void cleanup(int s)
{
    printf("exiting...\n");
    unlink("chatlock");
	if (s == -1) return; // Return 0 to testing funtion
	exit(0);
}
